#include <stdio.h>
#include<string.h>
int main()
{
	FILE* fp = fopen("bite.txt", "wb");
	if (fp == NULL)
	{
		perror("fopen");
	}
	const char* buffer = "linux so easy!\n";
	fwrite(buffer, 1, strlen(buffer), fp);
	fclose(fp);
  //fseek ( fp ,strlen(buffer) , SEEK_SET );
  //fp=fopen("bite.txt","rb");
  //char* tmp;
  //fread(tmp,1,strlen(buffer),fp);
	return 0;
}
//#include <stdio.h>
//
//int main()
//{
//  FILE*fp=fopen("log.txt","w");
//  if(fp==NULL)
//  {
//    perror("fopen");
//  }
//  //fprintf(fp,"hello world!");
//  fclose(fp);
//  return 0;
//}
